/*
 * @name: 商品信息表
 * @content:
 * @Author: joyce
 * @Date: 2020-03-11 09:35:38
 */
import request from "@/utils/request";

export function getquestionlist(data) {
  return request({
    url: "/question",
    method: "get",
    params: data
  });
}

export function postquestionlist(data) {
  return request({
    url: "/question",
    method: "post",
    data
  });
}

export function putquestionlist(data) {
  return request({
    url: "/question",
    method: "put",
    data
  });
}

export function deletequestionlist(data) {
  return request({
    url: "/question",
    method: "delete",
    data
  });
}

export function deletequestion_reply(data) {
  return request({
    url: "/question_reply",
    method: "delete",
    data
  });
}

export function UPQUESTION_IMG(data) {
  return request({
    url: "/uploadImagequestion",
    method: "post",
    data
  });
}

export function PUT_QUESTION_IMG(data) {
  return request({
    url: "/put_questionImageTests",
    method: "post",
    data
  });
}

export function getquestionreplylist(data) {
  return request({
    url: "/question_reply",
    method: "get",
    params: data
  });
}

export function postquestionreplylist(data) {
  return request({
    url: "/question_reply",
    method: "post",
    data
  });
}

export function putquestionreplylist(data) {
  return request({
    url: "/question_reply",
    method: "put",
    data
  });
}

export function deletequestionreplylist(data) {
  return request({
    url: "/question_reply",
    method: "delete",
    data
  });
}
